package com.hula.onion.book.server.spider.platforms.wanyingjinrong;

import com.hula.onion.book.server.common.LoginForm;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by work on 2018/1/26.
 */
@Component
public class WanYingJinRongSpiderHelper {
    /**
     * 组装请求参数
     *
     * @param form
     * @return
     */
    public Map<String, Object> installRequestParams(LoginForm form) {
        Map<String, Object> map = new HashMap<>(6);
        map.put("username", "");
        map.put("password", form.getPassword());
        map.put("mobile", form.getUserName());
        map.put("code", "0000");
        map.put("minits", "120");
        map.put("tokenid", "");
        return map;
    }
}
